<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateWyFinaBankBranchTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('wy_fina_bank_branch', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('parent_id')->index('parent_id')->nullable()->comment('上级网点ID');
            $table->integer('brank_id')->index('brank_id')->nullable();
            $table->string('branch_name', 255)->comment('网点名称');
            // $table->index('branch_name');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('wy_fina_bank_branch');
    }
}
